package LeetCode.leetcode344;

public class Main {
    /**
     * 看到题目后 总共两分钟ac 最快的一次
     * @param s
     */
    public void reverseString(char[] s) {
        int left = 0;
        int right = s.length-1;
        char temp;
        while (left<right){
            temp = s[right];
            s[right] = s[left];
            s[left] = temp;
            left++;
            right--;
        }
    }
}
